/*
 *  readpng.h
 *  bras
 *
 *  Created by Emmanuel Melin on 24/02/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef READPNG_H
#define READPNG_H

#include <GL/gl.h>
#include <libpng12/png.h>

struct gl_texture_t
{
	GLuint width;           /* largeur */
	GLuint height;          /* hauteur */
	
	GLenum format;          /* RVB, RVBA, Luminance, Luminance Alpha */
	GLint  internalFormat;  /* composantes d'un texel */
	GLuint id;
	
	GLubyte *texels;         /* données de l'image */
};

gl_texture_t *ReadPNGFromFile (const char *filename) ;
#endif
